/*
 * @Author: 飞越疯人院 353362604@qq.com
 * @Date: 2022-09-21 08:39:23
 * @LastEditors: 飞越疯人院 353362604@qq.com
 * @LastEditTime: 2022-12-28 10:19:29
 * @FilePath: \adminstration\src\Common\Modal\ThrModalList\LabReportTemplates.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { API_LIST } from '../../Api/Api'

export const BeamProduceRecordPersonGroup = async ({ data }) => {
    let dataList = {
        uuid: data.uuid,
        type: '添加分组',
        width: 800,
        classification: 'SelectModal',
        isCheckbox: false,
        pageSize: 10,
        params: { pageIndex: 1 },
        get: API_LIST()['getPersonGroup'],
        pos: 'posBeamProduceRecordPersonGroup',
        assemblyData: ([{ uuid }]) => ({ beamProduceRecordUuid: data.uuid, personGroupUuid: uuid }),
        columns: [{ title: '分组名称', dataIndex: 'tableName' }],
    }

    return dataList
}
